<?php 
namespace app\api\controller\v1;
use app\api\service\RoleService;

class Role extends Base {
    
    protected $service;
    public function __construct(RoleService $service)
    {
        parent::__construct();
        $this->service = $service;
    }

    // 角色
    public function index($page = 1, $size = 10) {
        return show(1, '成功', $this->service->page($page, $size), 200);
    }
}